import request from '@/utils/request'

// 神椰封顶激励规则列表
export function ruleList(query) {
  return request({
    url: '/shenye/industry/incentive/rule/list',
    method: 'get',
    params: query
  })
}
// 新增神椰封顶激励规则
export function addRule(data) {
  return request({
    url: '/shenye/industry/incentive/rule',
    method: 'post',
    data
  })
}
// 神椰封顶激励规则详情
export function ruleDetail(id) {
  return request({
    url: '/shenye/industry/incentive/rule/detail/' + id,
    method: 'get',
  })
}
// 编辑神椰行业
export function editRule(data) {
  return request({
    url: '/shenye/industry/incentive/rule',
    method: 'put',
    data: data
  })
}
//封顶激励规则选择列表
export function incentiveselectList(query) {
  return request({
    url: '/shenye/industry/incentive/rule/select/list',
    method: 'get',
    params: query
  })
}
// 删除神椰封顶激励规则
export function deleteRule(id) {
    return request({
        url: `/shenye/industry/incentive/rule/${id}`,
        method: 'DELETE',
    })
  }